import sympy
x = sympy.Symbol('x')
a = sympy.solve(x**2+2*x)
print(a)
